package br.com.android.fragment.util;

import java.util.ArrayList;
import java.util.List;

import br.com.android.fragment.entities.Category;
import br.com.android.fragment.entities.Issues;
import br.com.android.fragment.entities.Options;
import br.com.android.fragment.entities.Questionnaire;
import br.com.android.fragment.enums.TypeIssues;

public class Teste {

	public static List<Questionnaire> getExample() {

		Issues issues3;
		Issues issues2;
		Issues issues;
		Options option;
		Options option2;
		ArrayList<Options> options;
		ArrayList<Issues> listIssues = new ArrayList<Issues>();
		;

		Questionnaire questionnaire = new Questionnaire();
		questionnaire.setCod( 2L );
		questionnaire.setTitulo( "Form Teste" );

		ArrayList<Questionnaire> list = new ArrayList<Questionnaire>();

		for ( int i = 0; i < 1; i++ ) {
			issues = new Issues();
			issues.setTitulo( "Multipla Escolha ?" );
			issues.setCategory( new Category() );
			issues.setCod( 2L );
			issues.setQuestionnaire( questionnaire );
			issues.setTypeIssues( TypeIssues.CHOICEMULTIPLE );

			issues2 = new Issues();
			issues2.setTitulo( "Escolha única?" );
			issues2.setCategory( new Category() );
			issues2.setCod( 3L );
			issues2.setQuestionnaire( questionnaire );
			issues2.setTypeIssues( TypeIssues.CHOOSEONE );

			issues3 = new Issues();
			issues3.setTitulo( "Aberta ?" );
			issues3.setCategory( new Category() );
			issues3.setCod( 3L );
			issues3.setQuestionnaire( questionnaire );
			issues3.setTypeIssues( TypeIssues.OPEN );

			option = new Options();
			option.setId( 1L );
			option.setTitulo( "Sim" );

			option2 = new Options();
			option2.setId( 2L );
			option2.setTitulo( "Não" );

			options = new ArrayList<Options>();
			options.add( option2 );
			options.add( option );

			issues.setOptions( options );
			issues2.setOptions( options );

			listIssues.add( issues );
			listIssues.add( issues2 );
			listIssues.add( issues3 );
		}

		questionnaire.setIssueses( listIssues );
		list.add( questionnaire );
		return list;
	}

}
